package cn.js.sip.rat.system.service.impl;

import cn.js.sip.rat.system.entity.DicTypeEntity;
import cn.js.sip.rat.system.entity.ZtreeEntity;
import cn.js.sip.rat.system.mapper.DicTypeMapper;
import cn.js.sip.rat.system.page.TableDataInfo;
import cn.js.sip.rat.system.service.DicTypeService;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @ClassName: cn.js.sip.rat.system.service.impl
 * @Description: TODO
 * @author: xuxiaoli
 * @Date: 2020-01-06   21:30
 */
@Service("dicTypeService")
public class DicTypeServiceImpl extends BaseServiceImpl<DicTypeEntity> implements DicTypeService {
    @Resource
    private DicTypeMapper dicTypeMapper;

    @Override
    public List<DicTypeEntity> selectDictTypeList(DicTypeEntity dictType) {
        return null;
    }

    @Override
    public List<DicTypeEntity> selectDictTypeAll() {
        return dicTypeMapper.selectList(null);
    }

    @Override
    public DicTypeEntity selectDictTypeById(String dictId) {
        return dicTypeMapper.selectById(dictId);
    }

    @Override
    public DicTypeEntity selectDictTypeByType(String dictType) {
        return null;
    }

    @Override
    public int deleteDictTypeById(String dictId) {
        return 0;
    }

    @Override
    public int deleteDictTypeByIds(String ids) throws Exception {
        return 0;
    }

    @Override
    public int insertDictType(DicTypeEntity dictType) {
        return 0;
    }

    @Override
    public int updateDictType(DicTypeEntity dictType) {
        return 0;
    }

    @Override
    public String checkDictTypeUnique(DicTypeEntity dictType) {
        return null;
    }

    @Override
    public List<ZtreeEntity> selectDictTree(DicTypeEntity dictType) {
        return null;
    }

    @Override
    public TableDataInfo query(DicTypeEntity entity) {
        Page page = new Page(1, 10);
        Page selectPage = dicTypeMapper.selectPage(page, null);
        return super.getDataTable(selectPage);
    }
}
